list-deltas: Don't break on non-subdir entries
authorAlexander Larsson <alexl@redhat.com>
Mon, 31 Aug 2020 15:00:39 +0000 (17:00 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 11 Sep 2020 09:45:24 +0000 (11:45 +0200)
commit74bae256feaf297b80f0898c48ab762983b6c69a
tree935a21d493b66fd975f3435651b2f48f1fa2f0ce
parent69282a3dd3ef6a05339b31d46c095adfab92c4c1
list-deltas: Don't break on non-subdir entries

ostree_repo_list_static_delta_names() tried to validate that
any second-level directory element was a directory, but there was
a cut-and-paste issue, and it used `dent->d_type` instead
of `sub_dent->d_type`.

This fixes the code, but all old ostree versions will break if
there are non-directories in a subdirectory of the deltas directory
in the repo, so be wary.
src/libostree/ostree-repo-static-delta-core.c